package com.zhaoliang.pojo;

/**
 * 逻辑模型：物品类
 */
public class Good {

    /**
     * 自增id
     */
    private Integer gid;
    /**
     * 物品名称
     */
    private String gname;
    /**
     * 物品价格
     */
    private Integer price;
    /**
     * 物品数量
     */
    private Integer count;
    /**
     * 物品备注
     */
    private String remark;

    /**
     * 无参构造
     */
    public Good() {
    }

    /**
     * 全部参数构造
     *
     * @param gid    自增id
     * @param gname  物品名称
     * @param price  物品价格
     * @param count  物品数量
     * @param remark 物品备注
     */
    public Good(Integer gid, String gname, Integer price, Integer count, String remark) {
        this.gid = gid;
        this.gname = gname;
        this.price = price;
        this.count = count;
        this.remark = remark;
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return gid + "\t\t\t" + gname + "\t\t\t" + price + "\t\t\t" + count + "\t\t\t" + remark;
    }
}
